<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <script>
    var arr = ['a', 'b', 'c'];
    // 删除b元素  splice(从哪个位置开始删除, 删除几个元素)
    arr.splice(1, 1);
    console.log(arr);
  </script>
</body>

</html>